/*
 * @Author: shy_didi
 * @Date: 2020-06-08 10:56:58
 * @LastEditTime: 2020-06-08 13:59:13
 * @LastEditors: Please set LastEditors
 * @Description: 路由唯一出口
 * @FilePath: \发明人\fmr\src\router\index.js
 */ 
import Vue from "vue"
import VueRouter from "vue-router"
import routes from "./routes"

Vue.use(VueRouter)

//解决路由重复点击问题 
const orginalPush = VueRouter.prototype.push
    VueRouter.prototype.push = function push(localtion){
        return orginalPush.call(this,localtion).catch(err => err)
    }


export default new VueRouter({
    routes
})